package com.ssy.lingxi.member.merchant.model.vo.maintenance.request;

import com.ssy.lingxi.member.merchant.model.vo.basic.request.AreaCodeVO;
import com.ssy.lingxi.member.merchant.model.vo.validate.request.ValidateIdVO;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 会员详情 - 修改渠道信息接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-07
 */
public class MemberMaintenanceChannelUpdateVO extends ValidateIdVO implements Serializable {
    private static final long serialVersionUID = 4638947744026688043L;

    /**
     * 上级会员关系Id
     */
    private Long upperRelationId;

    /**
     * 渠道类型Id，如果会员类型为渠道会员、渠道个人会员，必填
     */
    @NotNull
    @Positive(message = "渠道类型Id要大于0")
    private Long channelTypeId;

    /**
     * 城市编码列表，如果会员类型为渠道会员、渠道个人会员，必填
     */
    @Valid
    private List<AreaCodeVO> areas;

    /**
     * 渠道描述
     */
    private String remark;

    public Long getUpperRelationId() {
        return upperRelationId;
    }

    public void setUpperRelationId(Long upperRelationId) {
        this.upperRelationId = upperRelationId;
    }

    public Long getChannelTypeId() {
        return channelTypeId;
    }

    public void setChannelTypeId(Long channelTypeId) {
        this.channelTypeId = channelTypeId;
    }

    public List<AreaCodeVO> getAreas() {
        return areas;
    }

    public void setAreas(List<AreaCodeVO> areas) {
        this.areas = areas;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
